<template>
  <div>
    <el-table :data="roleList" border style="width: 100%">
      <el-table-column type="index" label="序号" width="50"></el-table-column>
      <el-table-column prop="title" label="名称"></el-table-column>
      <el-table-column prop="describe" label="描述"></el-table-column>
      <el-table-column label="操作">
        <template slot-scope="scope">
          <el-button size="mini" type="primary" @click="handleEdit(scope.$index, scope.row)">分配权限</el-button>
        </template>
      </el-table-column>
    </el-table>

    <!-- <el-dialog title="权限配置" :visible.sync="dialogFormVisible">
      <el-form :model="form">
        <el-form-item label="活动名称" :label-width="formLabelWidth">
          <el-input v-model="form.name" autocomplete="off"></el-input>
        </el-form-item>
      </el-form>
      <div slot="footer" class="dialog-footer">
        <el-button @click="dialogFormVisible = false">取 消</el-button>
        <el-button type="primary" @click="dialogFormVisible = false">确 定</el-button>
      </div>
    </el-dialog> -->
  </div>
</template>
<script>
export default {
  data() {
    return {
      roleList: []
    };
  },
  created() {
    this.getRoleList();
  },
  methods: {
    async getRoleList() {
      let res = await this.roleApi.getRoleList();
      console.log(res);
      this.roleList = res;
    }
  },
  handleEdit(id) {

  }
};
</script>
<style>
</style>